]> dgit.raspbian.org Git - gnome-shell.git/commit
PopupMenu: introduce PopupMenuSection
authorGiovanni Campagna <gcampagna@src.gnome.org>
Tue, 25 Jan 2011 21:04:57 +0000 (22:04 +0100)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Mon, 21 Feb 2011 18:54:10 +0000 (19:54 +0100)
commitf34ce9271c09c00aaec7290dc4ad1f46b554269c
tree73aa37448eb8129a605850b3b6c48ae95292893d
parent6e236546eafa7eabc1b9db36c2b61acba4f8b773
PopupMenu: introduce PopupMenuSection

Complex popup menus require the ability to manager sequences of items
as "sections", to which you can add and and remove items, as well
as hide and show.
PopupMenuSection does exactly that, leveraging the existing machinery
for submenus, but without being exposed as a submenu to the user.
Also, make getMenuItems() private, since it is used for different things
now and may change semantics in the future.

https://bugzilla.gnome.org/show_bug.cgi?id=621707
js/ui/popupMenu.js